//Author: Zhengwei Pu & Lu Xu
// Term project for ECE59500

//If run this game in an operation system based on Chinese, the buttons of the dialog will show Chinese!
//
//But if in English OS, it also works well!
//
//The language of this game is based on your operation system. 

import java.awt.Color;

//The interface contains the constant parameter used in the other classes
public interface Utils {
	public static final int LEFT = 1;//four directions
	public static final int RIGHT = 2;
	public static final int UP = 3;
	public static final int DOWN = 4;
	
	public static final int DEFAULT_DIR = LEFT;//the default forward direction of the snake
	public static final int DEFAULT_SPEED = 10;//the default forward speed of the snake
	public static final int DEFAULT_ROWS = 50;//the default canvas' row
	public static final int DEFAULT_COLS = 50;//the default canvas' col
	
	public static final int SPEED_INCREASED_LEVEL = 10;//upgrade the movement speed if the level updraded
	public static final int TIME_INTERVAL = 200;//default sleep time, control the speed of the movement with snake's speed
	
	public static final Color DEFAULT_BG_COLOR = Color.black;//set the default background color as black or gray
        //the gray color can display the grid well
	public static final Color DEFAULT_SNAKE_COLOR = Color.GREEN;//set the snake's default color as green

        //some arguments of the snake
	public static final int DEFAULT_SNAKE_LEN = 2;//the default snake's length
	public static final int DEFAULT_SNAKE_PX = DEFAULT_COLS / 2;//the initiate default x of snake(calculated by the row of the canvas以画布的行列为单位)
	public static final int DEFAULT_SNAME_PY = DEFAULT_ROWS / 2;//the initiate default y of snake(calculated by the col of the canvas以画布的行列为单位)
	
	public static final int DEFAULT_GAME_LEVEL = 1;//the default level of the game
	public static final int MAX_GAME_LEVEL = 10;//the highest level of the game
	public static final int PER_FOOD_SCORE = 10;//every food's score
	public static final int PER_LEVEL_SCORE = 150;//the score needed for upgrading the level
}
